package com.larry.util;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.Date;


public class LarryUtil {

	public static String getFolderName() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
		return sdf.format(new Date());
	}
	
	public static File getSrcFile(String fileName) throws Exception {
		String path = Thread.currentThread().getContextClassLoader().getResource("").getFile().replace("/bin/", "/src/");
		return new File(path + fileName);
	}
}
